package cn.com.agree.bigdata.vmdatahandle.config;

import cn.com.agree.bigdata.vmdatahandle.exception.CustomAppException;

public class AppConfigUtil {
    private static AppConfig appConfig = null;

    public static void setAppConfig(AppConfig config) {
        appConfig = config;
    }

    public static AppConfig getAppConfig() throws CustomAppException {
        if (null == appConfig) {
            throw new CustomAppException("config is null");
        }
        return appConfig;
    }
}
